package com.fanhang.samples.springboot.data.mongodb.domain;

import java.io.Serializable;

import org.springframework.data.annotation.Id;

public class City implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private Country country;

	private String name;

	protected City() {
	}

	public City(Country country, String name) {
		this.country = country;
		this.name = name;
	}

	public Country getCountry() {
		return this.country;
	}

	public String getName() {
		return this.name;
	}

}
